/*
 * @Description:
 * @Version: 1.0.0
 * @Autor: zhou
 * @Date: 2022-05-15 20:54:24
 * @LastEditors: zhou
 * @LastEditTime: 2022-07-15 14:38:58
 */
// 环保

import request from "@/utils/request";
import { service2 } from "@/utils/request";

//获取天气接口
// export function getWeather() {
//     return request({
//         url: "https://restapi.amap.com/v3/weather/weatherInfo",
//         method: "get",
//         params: {
//             key: "7df4b1ab74bbab53d94e6156bc255bfa",
//             city: "450512",
//             extensions: "base",
//         },
//     });
// }
export function getWeather () {
    return request({
        url: "/env/datav/get_weather_info",
        method: "get",
    });
}
//

// 空气质量
export function airQuality (params) {
    return request({
        url: "/env/datav/cur_air_quality",
        method: "get",
        isToken: false,
        params,
    });
}
// 站点列表
export function listStation (params) {
    return request({
        url: "/env/datav/station_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 站点详情
export function getStation (params) {
    return request({
        url: "/env/datav/station_hour_data",
        method: "get",
        isToken: false,
        params,
    });
}
// 环保首页
export function envStatistical (params) {
    return request({
        url: "/env/datav/env_statistical",
        method: "get",
        isToken: false,
        params,
    });
}

// 重点区域
export function changeAqi (params) {
    return request({
        url: "/env/datav/env_change_aqi",
        method: "get",
        isToken: false,
        params,
    });
}
// 2.水质=========================
//获取当前水质质量
export function curWaterQuality (params) {
    return request({
        url: "/env/datav/cur_water_quality",
        method: "get",
        isToken: false,
        params,
    });
}
// 监测点污染浓度排名
export function waterQualityList (params) {
    return request({
        url: "/env/datav/water_quality_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 区域水质量排名
export function waterAvgQualityList (params) {
    return request({
        url: "/env/datav/water_avg_quality_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 水质监测点列表
export function waterStationList (params) {
    return request({
        url: "/env/datav/water_station_list",
        method: "get",
        isToken: false,
        params,
    });
}

// 近7日指数变化( 水质 )
export function latestWeekWater (params) {
    return request({
        url: "env/datav/water_latest_week_data",
        method: "get",
        isToken: false,
        params,
    });
}
// 3.大气检测==========================
// 近7日指数变化
export function latestWeekData (params) {
    return request({
        url: "/env/datav/latest_week_data",
        method: "get",
        isToken: false,
        params,
    });
}

// 5.系统上报==================================
// 热门事件
// export function hotOrder(params) {
//     return service2({
//         url: "/safety/hot/order",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 事件完成率
// export function finishPercent(params) {
//     return service2({
//         url: "/safety/order/finishPercent",
//         method: "get",
//         isToken: false,
//         params
//     });
// }

// 事件等级分布
// export function gradeDistribute(params) {
//     return service2({
//         url: "/safety/order/grade/distribute",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 本月已处理事件数
// export function monthChecked(params) {
//     return service2({
//         url: "/safety/order/month/checked",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 本月上报数
// export function monthSubmit(params) {
//     return service2({
//         url: "/safety/order/month/submit",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 事件热点图
// export function orderPosition(params) {
//     return service2({
//         url: "/safety/order/position",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 事件区域分布
// export function regionDistribute(params) {
//     return service2({
//         url: "/safety/order/region/distribute",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 事件统计
// export function orderStatistic(params) {
//     return service2({
//         url: "/safety/order/statistic",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 提报排名
// export function submitRank(params) {
//     return service2({
//         url: "/safety/order/submit/rank",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 今日上报数
// export function todaySubmit(params) {
//     return service2({
//         url: "/safety/order/today/submit",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 事件提报, 治理趋势
// export function orderTrend(params) {
//     return service2({
//         url: "/safety/order/trend",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 事件分类分布
// export function typeDistribute(params) {
//     return service2({
//         url: "/safety/order/type/distribute",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 群众举报处理趋势
// export function reportTrend(params) {
//     return service2({
//         url: "/safety/report/trend",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 上报问题及处理
// export function companyRank(params) {
//     return service2({
//         url: "/monthly/order/company/rank",
//         method: "get",
//         isToken: false,
//         params
//     });
// }
// 处理时长
// export function timeCost(params) {
//     return service2({
//         url: "/order/time/cost",
//         method: "get",
//         isToken: false,
//         params
//     });
// }

// 决策中心-----------------------------------------------------------------------------
// 获取人员位置
export function memberPosition (params) {
    return request({
        url: "/env/datav/monitor/member/position",
        method: "get",
        isToken: false,
        params,
    });
}
// 获取天气预报列表
export function monitorWeather (params) {
    return request({
        url: "/env/datav/monitor/weather",
        method: "get",
        isToken: false,
        params,
    });
}
// 获取某日的潮汐数据
export function monitorTide (params) {
    return request({
        url: "/env/datav/monitor/tide/",
        method: "get",
        isToken: false,
        params
    });
}
// 获取巡检状态
export function monitorPatrol (params) {
    return request({
        url: "/env/datav/monitor/patrol",
        method: "get",
        isToken: false,
        params,
    });
}
// 获取区域事件统计
export function regionOrder (params) {
    return request({
        url: "/env/datav/monitor/region/order",
        method: "get",
        isToken: false,
        params,
    });
}
// 获取区域事件状态
export function recentOrder (params) {
    return request({
        url: "/env/datav/monitor/recent/order",
        method: "get",
        isToken: false,
        params,
    });
}

// 处置中心--------------------------------------------------------------------------
// 事件统计
export function orderStatistic2 (params) {
    return request({
        url: "/env/datav/safety/order/statistic",
        method: "get",
        isToken: false,
        params,
    });
}
// 事件完成率
export function orderFinishPercent (params) {
    return request({
        url: "/env/datav/safety/order/finishPercent",
        method: "get",
        isToken: false,
        params,
    });
}
// 获取区域排名
export function submitRank2 (params) {
    return request({
        url: "/env/datav/safety/order/submit/rank",
        method: "get",
        isToken: false,
        params,
    });
}
//热门统计列表
export function hotOrder2 (params) {
    return request({
        url: "/env/datav/safety/hot/order",
        method: "get",
        isToken: false,
        params,
    });
}
// 获取事件热点图
export function orderPosition2 (params) {
    return request({
        url: "/env/datav/safety/order/position",
        method: "get",
        isToken: false,
        params,
    });
}

// 事件提报、治理趋势
export function orderTrend2 (params) {
    return request({
        url: "/env/datav/safety/order/trend",
        method: "get",
        isToken: false,
        params,
    });
}
// 举报事件|处理趋势
export function reportTrend2 (params) {
    return request({
        url: "/env/datav/safety/report/trend",
        method: "get",
        isToken: false,
        params,
    });
}

// 事件类型统计
export function typeDistribute2 (params) {
    return request({
        url: "/env/datav/safety/order/type/distribute",
        method: "get",
        isToken: false,
        params,
    });
}
// 获取事件等级占比
export function gradeDistribute2 (params) {
    return request({
        url: "/env/datav/safety/order/grade/distribute",
        method: "get",
        isToken: false,
        params,
    });
}
// 区域事件数统计
export function regionDistribute2 (params) {
    return request({
        url: "/env/datav/safety/order/region/distribute",
        method: "get",
        isToken: false,
        params,
    });
}
